/**
 *
 */
package jp.seraph.cui;

/**
 *
 *
 */
public class DefaultMode extends AbstractMode implements Mode {
    public DefaultMode(String aName, Mode aParent, InternalConsole aConsole){
        super(aParent, aConsole);

        mName = aName;
    }

    private String mName;

    /**
     *
     * @see jp.seraph.cui.SystemNode#getName()
     */
    public String getName() {
        return mName;
    }

    /**
     *
     * @see jp.seraph.cui.AbstractNode#setName(java.lang.String)
     */
    public void setName(String aName) {
        mName = aName;
    }

    /**
     *
     * @see jp.seraph.cui.SystemNode#getType()
     */
    public SystemNodeType getType() {
        return ModeType.getInstance();
    }

    /**
     *
     * @see jp.seraph.cui.SystemNode#isRoot()
     */
    public boolean isRoot() {
        return false;
    }

}
